DISCUSSION
The
ATSUCreateAndCopyStyle function creates a copy of the contents of the style object you pass in the
iStyle parameter, including those style run attribute, font feature, and font variation values that are not set in this style object. Those style run attributes that are not set in the source style object will be set to the default values listed in
Table C-1 in the newly-created style object. Those font features and font variations that are not set in the source style object will be set to font-default values in the newly-created style object.
ATSUCreateAndCopyStyle does not copy reference constants.
If you wish to copy the entire contents of a style object into an existing style object, call the function
ATSUCopyAttributes. To copy style run attributes, font features, and font variations that were previously set in the source style object into the destination style object, regardless of whether or not these values are set in the destination style object, call the function
ATSUOverwriteAttributes. To copy only those style run attributes, font features, and font variations that were previously set in the source style object but not set in the destination style object, call the function
ATSUUnderwriteAttributes.